﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;
namespace WebKpiPage.Data.Common
{
   
    public  class LogSystem
    {
        private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        public static void LogDebug(string message,Exception e)
        {
            log.Debug(message, e);
        }
        public static void LogInfo(string message, Exception e)
        {
            log.Info(message, e);
        }
        public static void LogInfo(string message)
        {
            log.Info(message);
        }
        public static void LogError(string message, Exception e)
        {
            log.Error(message, e);
        }
        public static void LogError(string message)
        {
            log.Error(message);
        }
        public static void LogFatal(string message, Exception e)
        {
            log.Fatal(message, e);
        }
        public static void LogFatal(string message)
        {
            log.Fatal(message);
        }
    }
}
